package com.timmy.blekit.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.inuker.bluetooth.library.search.SearchResult;
import com.timmy.blekit.R;

import java.util.List;

/**
 * @Auther: Timmy
 * @Data: 2017/8/25
 * @Fuction:
 */

public class BleDeviceAdapter extends BaseQuickAdapter<SearchResult, BaseViewHolder> {

    public BleDeviceAdapter(List<SearchResult> data) {
        super(R.layout.item_news, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, SearchResult item) {
        helper.setText(R.id.title, item.getName())
                .setText(R.id.desc, item.getAddress());
    }
}
